<f:view xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:sf="http://www.springframework.org/tags/faces"
	contentType="text/html" encoding="UTF-8">

	<h1 class="pageTitle">More information about this product</h1>
	<h:form>
		<h:commandLink action="back" title="back">
        Back to the home page
      </h:commandLink>
	</h:form>

	<br />

	<div class="doc">
		<div>
			<div class="resultRight">
				<div class="resultTitle">#{flowScope.productDetail["Title"]}</div>
				<div>#{flowScope.productDetail["ProductGroup"]} /
					#{flowScope.productDetail["Binding"]}</div>
				<div>#{flowScope.productDetail["ListPrice"]}</div>
				<div>#{flowScope.productDetail["Studio"]}</div>
				<div>#{flowScope.productDetail["ReleaseDate"]}</div>
				<div>#{flowScope.productDetail["AudienceRating"]}</div>
				<div>#{flowScope.productDetail["Actor"]}</div>
			</div>

			<div class="resultLeft">
				<img src="#{flowScope.productDetail['LargeImage.URL']}" alt="image"
					width="150px" class="resultImage" />
			</div>
		</div>

		<c:if test="${currentUser.authorities[0] == 'ROLE_ADMIN'}">
			<h:form>
				<h:commandButton value="Add" action="addProduct" type="submit">
					<f:setPropertyActionListener value="#{e}"
						target="#{flowScope.selectedObjectRow}" />
				</h:commandButton>
			</h:form>
		</c:if>
	</div>

	<br />

	<h:form>
		<h:commandLink action="back" title="back">
        Back to the home page
      </h:commandLink>
	</h:form>

</f:view>